package com.sikaryofficial.backend.domain.dto.req.productactivity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 活动奖品对象 activity_prize_relation_t
 *
 * @author qinjinyuan
 * @date 2024-07-15
 */
@Getter
@Setter
@ToString
@ApiModel(description = "活动奖项关系请求item对象")
public class ActivityPrizeRelationItem {

    /**
     * 活动奖品ID
     */
    @ApiModelProperty(value = "活动奖品ID")
    private Long activityPrizeId;

    /**
     * 活动ID
     */
    @JsonIgnore
    private Long activityId;

    /**
     * 奖品ID
     */
    @ApiModelProperty(value = "奖品ID")
    @NotNull(message = "奖品ID不能为空")
    private Long prizeId;

    /**
     * 奖品等级0-特等奖,1-一等奖,2-二等奖
     */
    @ApiModelProperty(value = "奖品等级0-特等奖,1-一等奖,2-二等奖",example = "0")
    private Integer level;

    /**
     * 中奖概率(概率的细分，通过配置实现)
     */
    @ApiModelProperty(value = "中奖概率(概率的细分，通过配置实现),单位 %",example = "2.5")
    private BigDecimal winRatio;

    /**
     * 奖品库存
     */
    @ApiModelProperty(value = "奖品数量; -1，不限制",example = "100")
    private Integer stock;

    /**
     * 奖项标签名称
     */
    @ApiModelProperty(value = "奖项标签名称",example = "标签")
    private String labelName;

    /**
     * 租户号
     */
    @JsonIgnore
    private Integer tenantId;

    @JsonIgnore
    private Integer sort;
}
